package main

import (
	"fmt"

	"gitee.com/hez2010/hjson"
)

type example struct {
	A map[string]int `mytag:"map"`
	B bool           `mytag:"bool"`
	C int            `mytag:"int"`
	D string         `mytag:"string"`
	E *bool
}

func main() {
	m := map[string]int{
		"A": 1,
	}
	e := example{m, false, 1, "hello", nil}
	result, _ := hjson.JSONMarshalAsString(e)
	fmt.Println(result)
}
